// Created by liusc on 2020/7/28--11:17.
<template>
  <div class="margin-box">
    <list-page
      :pager="pager"
      :data="tableData"
      :showSelectSearch="false"
      :placeholder="placeholder"
      @searchByKey="searchByKey"
      @changePageSize="changePageSize"
      @changeCurrentPage="changeCurrentPage"
    >
      <template slot="table">
        <el-table :data="tableData" align="center" @selection-change="selectionChange">
          <!--                    <el-table-column type="selection" width="55"></el-table-column>-->
          <el-table-column label="预算编号" prop="budgetCode"></el-table-column>
          <el-table-column label="申请时间" prop="applyDate"></el-table-column>
          <el-table-column label="申请名称" prop="applyName"></el-table-column>
          <el-table-column label="申请部门" prop="applyDept" :formatter="dictVal_department"></el-table-column>
          <el-table-column label="申请资金(元)" prop="applySum"></el-table-column>
          <el-table-column label="审批状态" prop="checkStatus" :formatter="dictVal_status"></el-table-column>
          <el-table-column width="100px" label="操作">
            <template slot-scope="scope">
              <el-button type="text" v-if="edit_button && scope.row.checkStatus==100 && scope.row.timeFlag==0" @click="toEditData(scope)">追加</el-button>
              <el-button
                type="text"
                v-if="edit_button && scope.row.checkStatus==101 || scope.row.checkStatus==102 || scope.row.checkStatus==103"
                @click="toLookData(scope)"
              >查看</el-button>
              <!--              <el-button type="text"-->
              <!--                         v-if="edit_button && scope.row.checkStatus==103"-->
              <!--                         @click="toLookData(scope)">查看</el-button>-->
              <!--                <el-button type="text" v-if="edit_button && scope.row.checkStatus==101" @click="toUpdateParameterData(scope)">更新台账</el-button>-->
            </template>
          </el-table-column>
        </el-table>
      </template>
    </list-page>
  </div>
</template>

<script src="./amendapply_list.js"></script>
<style scoped lang="scss">
@import "./amendapply_list";
</style>

